import 'package:flutter_test/flutter_test.dart';
import 'package:my_navtive/my_navtive.dart';
import 'package:my_navtive/my_navtive_platform_interface.dart';
import 'package:my_navtive/my_navtive_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockMyNavtivePlatform
    with MockPlatformInterfaceMixin
    implements MyNavtivePlatform {
  @override
  Future<String?> getPlatformVersion() => Future.value('42');
}

void main() {
  final MyNavtivePlatform initialPlatform = MyNavtivePlatform.instance;

  test('$MethodChannelMyNavtive is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelMyNavtive>());
  });

  test('getPlatformVersion', () async {
    MyNavtive myNavtivePlugin = MyNavtive();
    MockMyNavtivePlatform fakePlatform = MockMyNavtivePlatform();
    MyNavtivePlatform.instance = fakePlatform;

    // expect(await myNavtivePlugin.getPlatformVersion(), '42');
  });
}
